package com.wxy.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author zzzzz
 * @create 09-11
 */
@Controller
public class HelloController {

    @RequestMapping("/")
    public String root(){
        return "/index";
    }
    @RequestMapping("/index")
    public String index(){
        return "index.jsp";
    }
    @RequestMapping("/login")
    public String login(){
        return "login.jsp";
    }
    @RequestMapping("/register")
    public String register(){
        return "register.jsp";
    }
    @RequestMapping("/main")
    public String main(){
        return "main.jsp";
    }
    @RequestMapping("/error")
    public String error(){
        return "error.jsp";
    }
    @RequestMapping("/purple")
    public String purple(){
        return "purple.jsp";
    }
    @GetMapping("/forward")
    public String forward(String path){
        return path+".jsp";
    }
}
